# -*- coding: utf-8 -*-
# @Author  : wyh
# @Time    : 2022/2/11 15:13
# @File    : setup
# @Email   : 2448979539@qq.com
import os
from setuptools import setup, find_packages

# 项目路径
source_location = os.path.abspath(os.path.dirname(__file__))


# 获取版本号
def get_version():
    with open(os.path.join(source_location, "VERSION")) as version:
        return version.readline().strip()

setup(
    name='sqlalchemy-tdengine',
    version=get_version(),
    author='1',
    author_email="1@qq.com",
    description="SQLAlchemy dialect for TDENGINE",
    packages=find_packages(exclude=("test", "test.*",)),
    zip_safe=False,
    install_requires=[
        "sqlalchemy>=1.2.0",
        'taospy>=2.2.1'
    ],
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: Implementation :: PyPy",
        "Programming Language :: SQL",
        "Topic :: Database",
        "Topic :: Database :: Front-Ends",
        "Topic :: Software Development",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
    entry_points={
        "sqlalchemy.dialects": [
            "tdengine = sqlalchemy_tdengine.dialect:TDENGINEDialect",
        ]
     },
)